Xbasic
A5DNS::ManagerCreateCNAMEEntry Method
Syntax
.CreateCNAMEEntry as L (From as C, To as C)
Arguments
- FromCharacter
The DNS name from which to map.
- ToCharacter
The value to map to (substitute for) the DNS name provided.
Returns
- resultLogical
Returns .t. if the call succeeded or .f. if the function call failed. See the contents of the CallResult property for more information on the cause of the error.
Description
CreateCNAMEEntry creates a new entry mapping a CName to another DNS name.
Example
' Call the ShowConnectionStringDialog() function and then use the results to open the DNS Manager and create a CNAME record. ' Create a new CNAME record. dim cs as c ?A5DNS::Manager::ShowConnectionstringdialog(cs, cs) cs = "Provider='AmazonRoute53';Timeout='10000';AccessKey='kkkkkkkkk';SecretKey='sssssss';Domain='example.com.';" dim dnsm as A5DNS::Manager = null_value() Result = A5DNS::Manager::Open(dnsm,cs) ?dnsm.CreateCNAMEEntry("host.example.com", "host-name.targetexample.com")